import request from '@/utils/request.js'

// 封装聊天对话接口
export function chatApi(data) {
  return request({
    url: '/chat',
    method: 'post',
    data
  })
}

// 封装文本转语音接口
export function textToVoiceApi(data) {
  return request({
    url: '/audio',
    method: 'post',
    data
  })
}